package com.solution.common.swiftpass;

import com.solution.common.config.PublicConfigUtil;

/**
 * 北京银行支付配置
 * @author lilp
 * @date 2018/6/2
 */
public class SwiftpassConfig {

	private static final String MCH_ID = "swift_mch_id";
	private static final String KEY = "swift_key";
	private static final String PAY_REQ_URL = "swift_pay_req_url";
	private static final String ALI_PAY_NOTIFY_URL = "swift_ali_notify_url";
	private static final String WX_PAY_NOTIFY_URL = "swift_wx_notify_url";
	private static final String WX_OFFICE_ACCOUNT_PAY_NOTIFY_URL = "swift_wx_office_account_notify_url";
	private static final String MCH_CREATE_IP = "mch_create_ip";
	
	/**
	 * 获取支付商户号
	 * @return
	 */
	public static String getMchId(){
		return PublicConfigUtil.readConfig(MCH_ID);
	}
	
	/**
	 * 获取商户支付密钥
	 * @return
	 */
	public static String getKey(){
		return PublicConfigUtil.readConfig(KEY);
	}
	
	/**
	 * 获取支付商户ip地址
	 * @return
	 */
	public static String getMchCreateIp(){
		return PublicConfigUtil.readConfig(MCH_CREATE_IP);
	}
	
	/**
	 * 获取统一支付网关url
	 * @return
	 */
	public static String getPayReqUrl(){
		return PublicConfigUtil.readConfig(PAY_REQ_URL);
	}
	
	/**
	 * 获取支付宝支付异步通知地址
	 * @return
	 */
	public static String getAliPayNotifyUrl(){
		return PublicConfigUtil.readConfig(ALI_PAY_NOTIFY_URL);
	}
	
	/**
	 * 获取微信扫码支付异步通知地址
	 * @return
	 */
	public static String getWxPayNotifyUrl(){
		return PublicConfigUtil.readConfig(WX_PAY_NOTIFY_URL);
	}

	/**
	 * 获取微信公众号支付异步通知地址
	 * @return
	 */
	public static String getWxOfficeAccountPayNotifyUrl(){
		return PublicConfigUtil.readConfig(WX_OFFICE_ACCOUNT_PAY_NOTIFY_URL);
	}
	
}
